package com.haoshuang.zhouzhoubang.ui.page.order.take.services

import com.haoshuang.zhouzhoubang.databinding.ItemChooseServicesBinding
import com.haoshuang.zhouzhoubang.model.bean.ChooseServiceBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter
import com.mufeng.libs.utils.view.load


/**
 * 
 */
class ChooseServicesAdapter(data: MutableList<ChooseServiceBean.SecondCate.ThirdCate>) : BaseBindingQuickAdapter<ChooseServiceBean.SecondCate.ThirdCate, ItemChooseServicesBinding>(data) {
    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: ChooseServiceBean.SecondCate.ThirdCate?) {
        holder.getViewBinding<ItemChooseServicesBinding>().apply {
            tvServiceName.text = item?.cate_name
            rivImage.load(item?.image)
        }
    }

}